home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / xmlwf < prev    next >
Encoding:
Text File  |  2010-11-16  |  761 b   |  40 lines

  1. # bash completion for xmlwf(1)
  2.  
  3. have xmlwf &&
  4. _xmlwf()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -d)
  13.             _filedir -d
  14.             return 0
  15.             ;;
  16.         -e)
  17.             COMPREPLY=( $( compgen -W 'US-ASCII UTF-8 UTF-16 \
  18.                 ISO-8859-1' -- "$cur" ) )
  19.             return 0
  20.             ;;
  21.     esac
  22.  
  23.     if [[ "$cur" == -* ]]; then
  24.         COMPREPLY=( $( compgen -W '-c -d -e -m -n -p -r -s -t -v -w \
  25.             -x' -- "$cur" ) )
  26.         return 0
  27.     fi
  28.  
  29.     _filedir '@(*ml|htm|svg)'
  30. } &&
  31. complete -F _xmlwf -o filenames xmlwf
  32.  
  33. # Local variables:
  34. # mode: shell-script
  35. # sh-basic-offset: 4
  36. # sh-indent-comment: t
  37. # indent-tabs-mode: nil
  38. # End:
  39. # ex: ts=4 sw=4 et filetype=sh
  40.